package com.xdf.xzymanagementsystem.dao;

import com.mybatisflex.core.BaseMapper;
import com.xdf.xzymanagementsystem.entity.JcShearingFactory;
import com.xdf.xzymanagementsystem.util.Example;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @Description : 往来单位
* @Author : 张柯
* @Date : 2020-12-31 14:42:38
*/
@Repository
public interface JcShearingFactoryMapper {
    int insert(JcShearingFactory record);

    int insertSelective(JcShearingFactory record);

    int multiInsert(List<JcShearingFactory> list);

    int insertDumplicateKeyUpdate(JcShearingFactory record);

    int updateByPrimaryKey(JcShearingFactory record);

    int updateByPrimaryKeySelective(JcShearingFactory record);

    int multiUpdate(List<JcShearingFactory> list);

    int deleteByPrimaryKey(Integer id);

    JcShearingFactory selectByPrimaryKey(Integer id);

    List<JcShearingFactory> selectAll();

    List<JcShearingFactory> selectByParam(JcShearingFactory record);

    int updateByExampleSelective(@Param("record") JcShearingFactory record,@Param("example") Example example);

    int deleteByExample(@Param("example") Example example);

    List<JcShearingFactory> selectByExample(@Param("example") Example example);

    int insertByExampleSelective(@Param("record") JcShearingFactory record,@Param("example") Example example);

    long countByExample(@Param("example") Example example);

    JcShearingFactory selectByCode(String code);

    int moveClientSeq(@Param("id") int id,@Param("direction") int direction);
}